package org.xtremeobjects.forms.definition;

import java.util.ArrayList;

public class FormDefinition {

	private ArrayList<FieldDefinition> fieldDefinitions = new ArrayList<FieldDefinition>();
	private String name;
	private String description;
	private String help;

	public FormDefinition add( FieldDefinition aFieldDefinition )
	{
		aFieldDefinition.setParentFormDefinition(this);
		getFieldDefinitions().add(aFieldDefinition);
		return this;
	}

	public ArrayList<FieldDefinition> getFieldDefinitions() {
		return fieldDefinitions;
	}


	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}


	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}


	public void setHelp(String help) {
		this.help = help;
	}

	public String getHelp() {
		return help;
	}



}
